/**
 * @Author:  蓝建平
 * @Description:字符串常用方法
 * @Date:  2019/12/4
 */
void main()
{
  String words="Hello, Welcome to Dart!";
  print(words.substring(0,3));//[beginIndex,endIndex)
  print(words.codeUnitAt(1));//a:97 98 b  99 c 100 d  101 e
  print(words.codeUnitAt(0));//
  print(words.startsWith("Hello"));
  print(words.startsWith("hello"));
  String newWords=words.replaceAll("e", "1");

  print(newWords);
  print(words.split(","));
  print("192.168.11.123".split("."));
}